import type { ArticleDetail } from "@/types/http"
import request from "@/utils/request"

// 获取文章详情
export const getArticleDetailApi = (id: string) => {
  return request<ArticleDetail>({
    method: 'get',
    url: `/articles/${id}`
  })
}